home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.6 KB | 42 lines | [TEXT/GEOL] |
- Item 3355355 18-Jan-90 23:06
-
- From: D4682 Marx, Peter,PRT
-
- To: D3904 The Complete PC,PRT
- MACAPP.TECH$ MacApp Technical
-
- Sub: Re: TGrayMap and 32-Bit QD
-
- Perry,
-
- If I am correctly understanding you, you would like to take an already dithered
- image and convert it to grays...? If so, CopyBits() won't help you; it will
- only go from a continuous tone image to a dithered image. The only way that
- CopyBits would help you in such a case is if it is going from a large image to
- a small one at which point it would do pixel averaging.
-
- If you want to go to a dithered image, then draw the continuous tone image into
- an offscreen buffer 32-bits deep. Then CopyBits() out of that buffer using the
- ditherCopy drawing mode. This will work on any machine supported 32-bit
- QuickDraw.
-
- Depending on the dither algorithm, you would probably want to do pixel
- averaging (ie. a pattern dither with a 4x4 pattern should have those eight
- pixels averaged to produce one gray pixel in the outgoing image.)
-
- If the dithering algorithm is one of the error diffusion (ie. blue noise
- dithering), then the problem becomes much more complicated. So complicated, in
- fact, that you could write a thesis on it.
-
- If you want more information, feel free to call me at 213/471-2754.
-
- Peter Marx
- UCLA Dept. of Medicine.
-
-
- P.S. Are your gray-level images 2-bit, 4-bit, 8, 12, or 16 bits deep?
-
- P.P.S. DoubleVision is hardly the 32-bit QuickDraw program to end all 32-bit QD
- programs....!
-
-